package com.elin4it.ssm.pojo;

import java.util.ArrayList;
import java.util.List;

public class UserAnswerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserAnswerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRoomIdIsNull() {
            addCriterion("room_id is null");
            return (Criteria) this;
        }

        public Criteria andRoomIdIsNotNull() {
            addCriterion("room_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoomIdEqualTo(Integer value) {
            addCriterion("room_id =", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotEqualTo(Integer value) {
            addCriterion("room_id <>", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdGreaterThan(Integer value) {
            addCriterion("room_id >", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("room_id >=", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdLessThan(Integer value) {
            addCriterion("room_id <", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdLessThanOrEqualTo(Integer value) {
            addCriterion("room_id <=", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdIn(List<Integer> values) {
            addCriterion("room_id in", values, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotIn(List<Integer> values) {
            addCriterion("room_id not in", values, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdBetween(Integer value1, Integer value2) {
            addCriterion("room_id between", value1, value2, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotBetween(Integer value1, Integer value2) {
            addCriterion("room_id not between", value1, value2, "roomId");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNull() {
            addCriterion("openid is null");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNotNull() {
            addCriterion("openid is not null");
            return (Criteria) this;
        }

        public Criteria andOpenidEqualTo(String value) {
            addCriterion("openid =", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotEqualTo(String value) {
            addCriterion("openid <>", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThan(String value) {
            addCriterion("openid >", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThanOrEqualTo(String value) {
            addCriterion("openid >=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThan(String value) {
            addCriterion("openid <", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThanOrEqualTo(String value) {
            addCriterion("openid <=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLike(String value) {
            addCriterion("openid like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotLike(String value) {
            addCriterion("openid not like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidIn(List<String> values) {
            addCriterion("openid in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotIn(List<String> values) {
            addCriterion("openid not in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidBetween(String value1, String value2) {
            addCriterion("openid between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotBetween(String value1, String value2) {
            addCriterion("openid not between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andResult1IsNull() {
            addCriterion("result1 is null");
            return (Criteria) this;
        }

        public Criteria andResult1IsNotNull() {
            addCriterion("result1 is not null");
            return (Criteria) this;
        }

        public Criteria andResult1EqualTo(Integer value) {
            addCriterion("result1 =", value, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1NotEqualTo(Integer value) {
            addCriterion("result1 <>", value, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1GreaterThan(Integer value) {
            addCriterion("result1 >", value, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1GreaterThanOrEqualTo(Integer value) {
            addCriterion("result1 >=", value, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1LessThan(Integer value) {
            addCriterion("result1 <", value, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1LessThanOrEqualTo(Integer value) {
            addCriterion("result1 <=", value, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1In(List<Integer> values) {
            addCriterion("result1 in", values, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1NotIn(List<Integer> values) {
            addCriterion("result1 not in", values, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1Between(Integer value1, Integer value2) {
            addCriterion("result1 between", value1, value2, "result1");
            return (Criteria) this;
        }

        public Criteria andResult1NotBetween(Integer value1, Integer value2) {
            addCriterion("result1 not between", value1, value2, "result1");
            return (Criteria) this;
        }

        public Criteria andResult2IsNull() {
            addCriterion("result2 is null");
            return (Criteria) this;
        }

        public Criteria andResult2IsNotNull() {
            addCriterion("result2 is not null");
            return (Criteria) this;
        }

        public Criteria andResult2EqualTo(Integer value) {
            addCriterion("result2 =", value, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2NotEqualTo(Integer value) {
            addCriterion("result2 <>", value, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2GreaterThan(Integer value) {
            addCriterion("result2 >", value, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2GreaterThanOrEqualTo(Integer value) {
            addCriterion("result2 >=", value, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2LessThan(Integer value) {
            addCriterion("result2 <", value, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2LessThanOrEqualTo(Integer value) {
            addCriterion("result2 <=", value, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2In(List<Integer> values) {
            addCriterion("result2 in", values, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2NotIn(List<Integer> values) {
            addCriterion("result2 not in", values, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2Between(Integer value1, Integer value2) {
            addCriterion("result2 between", value1, value2, "result2");
            return (Criteria) this;
        }

        public Criteria andResult2NotBetween(Integer value1, Integer value2) {
            addCriterion("result2 not between", value1, value2, "result2");
            return (Criteria) this;
        }

        public Criteria andResult3IsNull() {
            addCriterion("result3 is null");
            return (Criteria) this;
        }

        public Criteria andResult3IsNotNull() {
            addCriterion("result3 is not null");
            return (Criteria) this;
        }

        public Criteria andResult3EqualTo(Integer value) {
            addCriterion("result3 =", value, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3NotEqualTo(Integer value) {
            addCriterion("result3 <>", value, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3GreaterThan(Integer value) {
            addCriterion("result3 >", value, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3GreaterThanOrEqualTo(Integer value) {
            addCriterion("result3 >=", value, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3LessThan(Integer value) {
            addCriterion("result3 <", value, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3LessThanOrEqualTo(Integer value) {
            addCriterion("result3 <=", value, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3In(List<Integer> values) {
            addCriterion("result3 in", values, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3NotIn(List<Integer> values) {
            addCriterion("result3 not in", values, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3Between(Integer value1, Integer value2) {
            addCriterion("result3 between", value1, value2, "result3");
            return (Criteria) this;
        }

        public Criteria andResult3NotBetween(Integer value1, Integer value2) {
            addCriterion("result3 not between", value1, value2, "result3");
            return (Criteria) this;
        }

        public Criteria andResult4IsNull() {
            addCriterion("result4 is null");
            return (Criteria) this;
        }

        public Criteria andResult4IsNotNull() {
            addCriterion("result4 is not null");
            return (Criteria) this;
        }

        public Criteria andResult4EqualTo(Integer value) {
            addCriterion("result4 =", value, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4NotEqualTo(Integer value) {
            addCriterion("result4 <>", value, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4GreaterThan(Integer value) {
            addCriterion("result4 >", value, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4GreaterThanOrEqualTo(Integer value) {
            addCriterion("result4 >=", value, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4LessThan(Integer value) {
            addCriterion("result4 <", value, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4LessThanOrEqualTo(Integer value) {
            addCriterion("result4 <=", value, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4In(List<Integer> values) {
            addCriterion("result4 in", values, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4NotIn(List<Integer> values) {
            addCriterion("result4 not in", values, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4Between(Integer value1, Integer value2) {
            addCriterion("result4 between", value1, value2, "result4");
            return (Criteria) this;
        }

        public Criteria andResult4NotBetween(Integer value1, Integer value2) {
            addCriterion("result4 not between", value1, value2, "result4");
            return (Criteria) this;
        }

        public Criteria andResult5IsNull() {
            addCriterion("result5 is null");
            return (Criteria) this;
        }

        public Criteria andResult5IsNotNull() {
            addCriterion("result5 is not null");
            return (Criteria) this;
        }

        public Criteria andResult5EqualTo(Integer value) {
            addCriterion("result5 =", value, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5NotEqualTo(Integer value) {
            addCriterion("result5 <>", value, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5GreaterThan(Integer value) {
            addCriterion("result5 >", value, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5GreaterThanOrEqualTo(Integer value) {
            addCriterion("result5 >=", value, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5LessThan(Integer value) {
            addCriterion("result5 <", value, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5LessThanOrEqualTo(Integer value) {
            addCriterion("result5 <=", value, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5In(List<Integer> values) {
            addCriterion("result5 in", values, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5NotIn(List<Integer> values) {
            addCriterion("result5 not in", values, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5Between(Integer value1, Integer value2) {
            addCriterion("result5 between", value1, value2, "result5");
            return (Criteria) this;
        }

        public Criteria andResult5NotBetween(Integer value1, Integer value2) {
            addCriterion("result5 not between", value1, value2, "result5");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Integer value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Integer value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Integer value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Integer value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Integer value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Integer> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Integer> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Integer value1, Integer value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}